/* GitCode Issue Feedback 插件演示样式 */

/* 自定义按钮样式 */
.gitbook-plugin-gitcode-issue-feedback {
    /* 演示用：橙色主题 */
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important;
    border-radius: 30px !important;
    font-weight: bold !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4) !important;
}

.gitbook-plugin-gitcode-issue-feedback:hover {
    background: linear-gradient(135deg, #ee5a24 0%, #c44569 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6) !important;
}

/* 成功状态 */
.gitbook-plugin-gitcode-issue-feedback.success {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4) !important;
}

/* 错误状态 */
.gitbook-plugin-gitcode-issue-feedback.error {
    background: linear-gradient(135deg, #e17055 0%, #d63031 100%) !important;
    box-shadow: 0 4px 15px rgba(225, 112, 85, 0.4) !important;
}

/* 页面样式增强 */
.book-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.book-body h1,
.book-body h2,
.book-body h3 {
    color: #2d3436;
}

.book-body h1 {
    border-bottom: 3px solid #ff6b6b;
    padding-bottom: 10px;
}

.book-body h2 {
    border-bottom: 2px solid #74b9ff;
    padding-bottom: 8px;
}

.book-body h3 {
    border-bottom: 1px solid #a29bfe;
    padding-bottom: 5px;
}

/* 代码块样式 */
.book-body pre {
    background: #2d3436;
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
}

.book-body code {
    background: #f8f9fa;
    color: #e17055;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
}

/* 引用块样式 */
.book-body blockquote {
    border-left: 4px solid #74b9ff;
    background: #f8f9fa;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

/* 表格样式 */
.book-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

.book-body th,
.book-body td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.book-body th {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    font-weight: bold;
}

.book-body tr:nth-child(even) {
    background: #f8f9fa;
}

.book-body tr:hover {
    background: #e3f2fd;
}

/* 按钮样式 */
.book-body .btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.book-body .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.4);
}

/* 警告框样式 */
.book-body .alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.book-body .alert-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #0d47a1;
}

.book-body .alert-warning {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

.book-body .alert-success {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #1b5e20;
}

.book-body .alert-error {
    background: #ffebee;
    border-color: #f44336;
    color: #b71c1c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gitbook-plugin-gitcode-issue-feedback {
        right: 10px !important;
        bottom: 10px !important;
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
    
    .book-body h1 {
        font-size: 1.8em;
    }
    
    .book-body h2 {
        font-size: 1.5em;
    }
    
    .book-body h3 {
        font-size: 1.3em;
    }
}

/* 打印样式 */
@media print {
    .gitbook-plugin-gitcode-issue-feedback {
        display: none !important;
    }
}
